from enum import Enum, unique


@unique
class PositionType(Enum):
    Boarding = 1    # 登机口
    Remote = 2      # 远机位
    Arrival = 3     # 到达口
    Rest = 4        # 休息区


class Position:
    def __init__(self,
            pos_type: PositionType,
            name: str):
        self._pos_type = pos_type
        self._name = name 

    @property
    def pos_type(self) -> PositionType:
        return self._pos_type

    @property
    def name(self) -> PositionType:
        return self._name

    def __str__(self):
        return f"{self._pos_type.name}_{self._name}"

    def __eq__(self, obj):
        return (self.name == obj.name) and (self.pos_type == obj.pos_type)